package com.zjmzxfzhl.modules.app.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zjmzxfzhl.common.core.base.BaseEntity;
import com.zjmzxfzhl.common.core.validator.constraints.LengthForUtf8;
import javax.validation.constraints.NotNull;

import com.zjmzxfzhl.modules.app.form.DocFilePath;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 【】实体类
 * 
 * @author 张森荣
 */
@Data
@TableName("T_APP_PROD_VER")
public class AppProdVer extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
//    @NotNull
    @LengthForUtf8(max = 32)
    private String verId;

    /**
     * 产品ID
     */
    @NotNull
    @LengthForUtf8(max = 32)
    private String prodId;

    /**
     * 版本号
     */
    @NotNull
    @LengthForUtf8(max = 32)
    private String version;

    /**
     * 描述
     */
    @NotNull
    private String content;

    /**
     * 状态
     */
    @NotNull
    @LengthForUtf8(max = 2)
    private String status;

    /**
     * 流程ID
     */
    @LengthForUtf8(max = 64)
    private String modelId;

    /**
     * 表单Key
     */
//    @NotNull
    @LengthForUtf8(max = 100)
    private String formKey;

    /**
     * 表单数据
     */
    private String formData;

    /**
     * 目录ID
     */
//    @NotNull
    @LengthForUtf8(max = 64)
    private String processInstanceId;

    /**
     * 目录ID
     */
//    @NotNull
    @LengthForUtf8(max = 32)
    private String dirId;

    /**
     * 添加时传入附件
     */
    @TableField(exist = false)
    private List<DocFilePath> docFilePath= new ArrayList<>();
}